package internal

import (
	"Alpaca/gate"
)

func init() {
	skeleton.RegisterChanRPC("NewAgent", rpcNewAgent)
	skeleton.RegisterChanRPC("CloseAgent", rpcCloseAgent)
	//skeleton.RegisterChanRPC("ItemQuery", ItemQuery)
}

//var agents sync.Map

func rpcNewAgent(args []interface{}) {
	a := args[0].(gate.Agent)
	_ = a
	//agents.Store(a, 1)
}

func rpcCloseAgent(args []interface{}) {
	a := args[0].(gate.Agent)
	_ = a
	//agents.Delete(a)
}
